package com.hjimi.ski.bean;

/**
 * Created By 孙岩
 * on 2023/8/12
 */
public class InitDeviceBean {

    /**
     * code : 200
     * data : {"mac":"54:77:87:dd:20:c6","sn":"JTYJ0000102121000002","screen_id":1,"size_id":1,"screen_angle_id":0,"buffer_id":2,"camera_angle_id":0,"is_camera":1,"ip":"192.168.2.29","is_carousel":1,"carousel_seconds":15,"is_gesture":0,"device_id":126,"device_info_id":10,"phone":"133****0727","token":"token","turn_config":{"is_open":false,"start_time":"","end_time":"","weeks":""},"bgm_config":{"is_open":false,"bgm_id":0,"bgm_url":"","is_loop":false}}
     * msg : 初始化数据成功
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean {
        /**
         * mac : 54:77:87:dd:20:c6
         * sn : JTYJ0000102121000002
         * screen_id : 1
         * size_id : 1
         * screen_angle_id : 0
         * buffer_id : 2
         * camera_angle_id : 0
         * is_camera : 1
         * ip : 192.168.2.29
         * is_carousel : 1
         * carousel_seconds : 15
         * is_gesture : 0
         * device_id : 126
         * device_info_id : 10
         * phone : 133****0727
         * token : token
         * turn_config : {"is_open":false,"start_time":"","end_time":"","weeks":""}
         * bgm_config : {"is_open":false,"bgm_id":0,"bgm_url":"","is_loop":false}
         */

        private String mac;
        private String sn;
        private int screen_id;
        private int size_id;
        private int screen_angle_id;
        private int buffer_id;
        private int camera_angle_id;
        private int is_camera;
        private String ip;
        private int is_carousel;
        private int carousel_seconds;
        private int is_gesture;
        private int device_id;
        private int device_info_id;
        private String phone;
        private String token;
        private TurnConfigBean turn_config;
        private BgmConfigBean bgm_config;

        public DataBean(String mac, String sn, int screen_id, int size_id, int screen_angle_id, int buffer_id, int camera_angle_id, int is_camera, String ip, int is_carousel, int carousel_seconds, int is_gesture, int device_id, int device_info_id, String phone, String token, TurnConfigBean turn_config, BgmConfigBean bgm_config) {
            this.mac = mac;
            this.sn = sn;
            this.screen_id = screen_id;
            this.size_id = size_id;
            this.screen_angle_id = screen_angle_id;
            this.buffer_id = buffer_id;
            this.camera_angle_id = camera_angle_id;
            this.is_camera = is_camera;
            this.ip = ip;
            this.is_carousel = is_carousel;
            this.carousel_seconds = carousel_seconds;
            this.is_gesture = is_gesture;
            this.device_id = device_id;
            this.device_info_id = device_info_id;
            this.phone = phone;
            this.token = token;
            this.turn_config = turn_config;
            this.bgm_config = bgm_config;
        }

        public String getMac() {
            return mac;
        }

        public void setMac(String mac) {
            this.mac = mac;
        }

        public String getSn() {
            return sn;
        }

        public void setSn(String sn) {
            this.sn = sn;
        }

        public int getScreen_id() {
            return screen_id;
        }

        public void setScreen_id(int screen_id) {
            this.screen_id = screen_id;
        }

        public int getSize_id() {
            return size_id;
        }

        public void setSize_id(int size_id) {
            this.size_id = size_id;
        }

        public int getScreen_angle_id() {
            return screen_angle_id;
        }

        public void setScreen_angle_id(int screen_angle_id) {
            this.screen_angle_id = screen_angle_id;
        }

        public int getBuffer_id() {
            return buffer_id;
        }

        public void setBuffer_id(int buffer_id) {
            this.buffer_id = buffer_id;
        }

        public int getCamera_angle_id() {
            return camera_angle_id;
        }

        public void setCamera_angle_id(int camera_angle_id) {
            this.camera_angle_id = camera_angle_id;
        }

        public int getIs_camera() {
            return is_camera;
        }

        public void setIs_camera(int is_camera) {
            this.is_camera = is_camera;
        }

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public int getIs_carousel() {
            return is_carousel;
        }

        public void setIs_carousel(int is_carousel) {
            this.is_carousel = is_carousel;
        }

        public int getCarousel_seconds() {
            return carousel_seconds;
        }

        public void setCarousel_seconds(int carousel_seconds) {
            this.carousel_seconds = carousel_seconds;
        }

        public int getIs_gesture() {
            return is_gesture;
        }

        public void setIs_gesture(int is_gesture) {
            this.is_gesture = is_gesture;
        }

        public int getDevice_id() {
            return device_id;
        }

        public void setDevice_id(int device_id) {
            this.device_id = device_id;
        }

        public int getDevice_info_id() {
            return device_info_id;
        }

        public void setDevice_info_id(int device_info_id) {
            this.device_info_id = device_info_id;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public TurnConfigBean getTurn_config() {
            return turn_config;
        }

        public void setTurn_config(TurnConfigBean turn_config) {
            this.turn_config = turn_config;
        }

        public BgmConfigBean getBgm_config() {
            return bgm_config;
        }

        public void setBgm_config(BgmConfigBean bgm_config) {
            this.bgm_config = bgm_config;
        }

        public static class TurnConfigBean {
            /**
             * is_open : false
             * start_time :
             * end_time :
             * weeks :
             */

            private boolean is_open;
            private String start_time;
            private String end_time;
            private String weeks;

            public TurnConfigBean(boolean is_open, String start_time, String end_time, String weeks) {
                this.is_open = is_open;
                this.start_time = start_time;
                this.end_time = end_time;
                this.weeks = weeks;
            }

            public boolean isIs_open() {
                return is_open;
            }

            public void setIs_open(boolean is_open) {
                this.is_open = is_open;
            }

            public String getStart_time() {
                return start_time;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public String getEnd_time() {
                return end_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public String getWeeks() {
                return weeks;
            }

            public void setWeeks(String weeks) {
                this.weeks = weeks;
            }
        }

        public static class BgmConfigBean {
            /**
             * is_open : false
             * bgm_id : 0
             * bgm_url :
             * is_loop : false
             */

            private boolean is_open;
            private int bgm_id;
            private String bgm_url;
            private boolean is_loop;

            public BgmConfigBean(boolean is_open, int bgm_id, String bgm_url, boolean is_loop) {
                this.is_open = is_open;
                this.bgm_id = bgm_id;
                this.bgm_url = bgm_url;
                this.is_loop = is_loop;
            }

            public boolean isIs_open() {
                return is_open;
            }

            public void setIs_open(boolean is_open) {
                this.is_open = is_open;
            }

            public int getBgm_id() {
                return bgm_id;
            }

            public void setBgm_id(int bgm_id) {
                this.bgm_id = bgm_id;
            }

            public String getBgm_url() {
                return bgm_url;
            }

            public void setBgm_url(String bgm_url) {
                this.bgm_url = bgm_url;
            }

            public boolean isIs_loop() {
                return is_loop;
            }

            public void setIs_loop(boolean is_loop) {
                this.is_loop = is_loop;
            }
        }
    }
}
